import Vue from 'vue';
import VueRouter from 'vue-router';
import RouterConfig from './modules'; // 引入业务逻辑模块

const Home = () => import('../views/home/home.vue');

const CommonRouters = [
  {
    path: '/',
    name: 'home',
    component: Home,
    meta: {
      keepAlive: false,
    },
  },
];
Vue.use(VueRouter);
export default new VueRouter({
  scrollBehavior: () => ({ y: 0 }),
  routes: RouterConfig.concat(CommonRouters),
});
